repo-pull: Add a queue for scanning
authorJasper St. Pierre <jstpierre@mecheye.net>
Thu, 6 Aug 2015 22:45:21 +0000 (15:45 -0700)
committerJasper St. Pierre <jstpierre@mecheye.net>
Wed, 26 Aug 2015 19:15:38 +0000 (12:15 -0700)
commit20647edcbffb1da9ac38e2e79155cc96b9c5e9fd
tree7e930ed08c58f406994c35540b44245dfcf8c5fc
parent863f5d85982af8e981c076846a50d335a6e5b630
repo-pull: Add a queue for scanning

On systems with slow disks, the recursive scanning of directories can
be expensive -- it takes upwards of 2 minutes on our systems. This can
block the main loop for such a long time that it allows the download to
time out...

As such, move all the scanning of objects to a queue, processed from
an idle, to make sure that we don't block the main loop when scanning.

https://bugzilla.gnome.org/show_bug.cgi?id=753336
src/libostree/ostree-repo-pull.c